package com.baiyang.server.model.book;

import com.baiyang.server.annotation.NotNull;

/**
 * @author XVX - generator
 * @version 1
 */
@NotNull
public class ShoppingCart {
	//唯一id
	@NotNull
	private String id;	
	//用户id
	@NotNull
	private String userId;	
	//数量
	@NotNull
	private Integer num = 1;
	//书籍id
	@NotNull
	private String bookId;
	private String bookName;
	private String price;
	private String picUrl;
	//创建时间
	private String createTime;	
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getUserId(){
		return userId;
	}
	public void setUserId(String userId){
		this.userId = userId;
	}
	public Integer getNum(){
		return num;
	}
	public void setNum(Integer num){
		this.num = num;
	}
	public String getBookId(){
		return bookId;
	}
	public void setBookId(String bookId){
		this.bookId = bookId;
	}
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime = createTime;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
}
